<!DOCTYPE html >
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title>聪慧科技 | 用户管理</title>
    <link rel="stylesheet" href="../css/style.default.css" type="text/css"/>
    <script type="text/javascript" src="../js/plugins/jquery-1.7.min.js"></script>
    <script type="text/javascript" src="../js/plugins/jquery-ui-1.8.16.custom.min.js"></script>
    <script type="text/javascript" src="../js/plugins/jquery.cookie.js"></script>
    <script type="text/javascript" src="../js/plugins/jquery.uniform.min.js"></script>
    <script type="text/javascript" src="../js/plugins/jquery.validate.min.js"></script>
    <script type="text/javascript" src="../js/plugins/jquery.tagsinput.min.js"></script>
    <script type="text/javascript" src="../js/plugins/charCount.js"></script>
    <script type="text/javascript" src="../js/plugins/ui.spinner.min.js"></script>
    <script type="text/javascript" src="../js/plugins/chosen.jquery.min.js"></script>
    <script type="text/javascript" src="../js/custom/general.js"></script>
    <script type="text/javascript" src="../js/custom/forms.js"></script>

    <!--[if IE 9]>
    <link rel="stylesheet" media="screen" href="css/style.ie9.css"/>
    <![endif]-->
    <!--[if IE 8]>
    <link rel="stylesheet" media="screen" href="css/style.ie8.css"/>
    <![endif]-->
    <!--[if lt IE 9]>
    <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
    <![endif]-->
</head>

<body class="withvernav">
<div class="bodywrapper">
    <div th:replace="~{common/top::top}"></div>

    <div class="vernav2 iconmenu">
        <ul>
            <li class="current"><a href="#userManage" class="editor">薪金信息管理</a> <span class="arrow"></span>
                <ul id="userManage">
                    <li class="current" th:if="${session.user.manager == '是'}"><a th:href="@{/stipend/moneyAdd}">薪金信息添加</a></li>
                    <!--class="current"选中的黄字特效-->
                    <li><a th:href="@{/stipend/moneyChange}">薪金信息列表</a></li>

                </ul>
            </li>


            <li><a href="#support" class="error">技术支持</a> <span class="arrow"></span>
                <ul id="support">
                    <li><a href="../teamName.html" th:href="@{/teamName}">技术团队</a></li>
                    <li><a href="../teamCantact.html" th:href="@{/teamCantact}">联系我们</a></li>

                </ul>
            </li>

        </ul>
        <a class="togglemenu"></a> <br/>
        <br/>
    </div>
    <!--leftmenu-->

    <div class="centercontent">
        <div class="pageheader">
            <h1 class="pagetitle">薪金信息录入</h1>

        </div>
        <!--pageheader-->

        <div id="contentwrapper" class="contentwrapper">
            <div id="basicform" class="subcontent">
                <div class="contenttitle2">
                    <!--<h3>Form Style 1</h3>-->
                </div>
                <!--contenttitle-->

                <form th:action="@{/stipend/moneyAdd}" class="stdform" method="post" novalidate>
                    <p>
                        <label f>输入员工姓名：</label>
                        <span class="field">
            <input type="text" name="sName" class="mediuminput"
                   id="sName"
                   th:value="${stipend !=null ? stipend.sName:''}"/>
            </span>
                        <label th:type="hidden"></label>
                        <span th:text="${errorMessages != null and  errorMessages.containsKey('sName')? errorMessages.sName: ''}">错误信息</span>
                    </p>
                    <p>
                        <label>输入基本薪金：</label>
                        <span class="field">
            <input type="text" name="sBasicWages" class="mediuminput"
                   id="sBasicWages"
                   th:value="${stipend !=null ? stipend.sBasicWages:''}"/>
            </span>
                        <label th:type="hidden"></label>
                        <span th:text="${errorMessages != null and  errorMessages.containsKey('sBasicWages')? errorMessages.sBasicWages: ''}">错误信息</span>
                    </p>
                    <p>
                        <label>饭补：</label>
                        <span class="field">
            <input type="text" name="sEatMoney" class="mediuminput"
                   id="sEatMoney"
                   th:value="${stipend !=null ? stipend.sEatMoney:''}"/>
            </span></p>
                    <p>
                        <label>房补：</label>
                        <span class="field">
            <input type="text" name="sHouseMoney" class="mediuminput"
                   id="sHouseMoney"
                   th:value="${stipend !=null ? stipend.sHouseMoney:''}"/>
            </span></p>
                    <p>
                        <label>工资发放时间：</label>
                        <span class="field">
            <input type="text" name="sWagesTime" class="mediuminput"
                   id="sWagesTime"
                   th:value="${stipend !=null ? stipend.sWagesTime:''}"/>
            </span></p>
                    <p>
                        <label>全勤奖：</label>
                        <span class="field">
            <input type="text" name="sAlldayWages" class="mediuminput"
                   id="sAlldayWages"
                   th:value="${stipend !=null ? stipend.sAlldayWages:''}"/>
            </span></p>
                    <p>
                        <label>赋税：</label>
                        <span class="field">
            <input type="text" name="sTaxes" class="mediuminput"
                   id="sTaxes"
                   th:value="${stipend !=null ? stipend.sTaxes:''}"/>
            </span>
                        <label th:type="hidden"></label>
                        <span th:text="${errorMessages != null and  errorMessages.containsKey('sTaxes')? errorMessages.sTaxes: ''}">错误信息</span>
                    </p>
                    <p>
                        <label>罚款：</label>
                        <span class="field">
            <input type="text" name="sFine" class="mediuminput"
                   id="sFine"
                   th:value="${stipend !=null ? stipend.sFine:''}"/>
            </span></p>
                    <p>
                        <label>额外补助：</label>
                        <span class="field">
            <input type="text" name="sHelpMoney" class="mediuminput"
                   id="sHelpMoney"
                   th:value="${stipend !=null ? stipend.sHelpMoney:''}"/>
            </span></p>
                    <p>
                        <label>总计金额：</label>
                        <span class="field">
            <input type="text" name="sTotalWages" class="mediuminput"
                   id="sTotalWages"
                   th:value="${stipend !=null ? stipend.sTotalWages:''}"/>
            </span></p>
                    <br clear="all"/>
                    <br/>
                    <p class="stdformbutton">
                        <button class="submit radius2">确认添加</button>
                        <input type="reset" class="reset radius2" value="重置"/>
                    </p>
                </form>
                <br/>
                <br/>
            </div>
            <!--subcontent-->

        </div>
        <!--contentwrapper-->

    </div>
    <!-- centercontent -->

</div>
<!--bodywrapper-->

<script>
    $('form.stdform').submit(function (event) {
        //调用表单对象的验证方法，如果验证方法返回true 说明所有的表单域都填写正确。否则返回false
        if (this.checkValidity() === false) {
            $(this).addClass('was-validated')
            return false;
        }
        return true;
    })

</script>
</body>
</html>